PgLayout.writeToFile

A convenience method to serialize a layout to a file.

It is equivalent to calling [method@Pango.Layout.serialize] followed by [func@GLib.file_set_contents].

See those two functions for details on the arguments.

It is mostly intended for use inside a debugger to quickly dump a layout to a file for later inspection.

class PgLayout
bool
writeToFile

Parameters

flags PangoLayoutSerializeFlags

PangoLayoutSerializeFlags

filename string

the file to save it to

Return Value

Type: bool

%TRUE if saving was successful

Throws

GException on failure.

Meta

Since

1.50